package com.itwenke.springbootdemo.shirowebssm.mapper;

import com.itwenke.springbootdemo.shirowebssm.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

public interface RoleMapper {

    @Select("select r.* from `role` r, user_role ur where r.id = ur.rid and ur.uid = #{uid}")
    Set<Role> findRolesByUid(@Param("uid")Long uid);

}
